package org.nobject.common.swing.g;

import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;


/**
 * GComponent
 *
 * @author bianrongjun
 * @version 1.0
 */
public class GComponent{
	
	/** fontsmooth */
	public boolean fontsmooth=false;
	
	/**
	 * 构造函数 
	 */
	public GComponent(){
		
	}
	
	/**
	 * 绘制子部件
	 * @param g
	 */
	protected void paintChildren(Graphics g) {
		if(org.nobject.common.swing.g.GConstance.FONTSMOOTH||fontsmooth) ((Graphics2D)g).setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);
	}

}
